# -*- mode: snippet; require-final-newline: nil -*-
# name: assert_raises exception with specific message
# key: asex
# --
e = assert_raises ${1:exception} do
  $0
end

assert_match %r"${2:error_message}", e.message